package com.jwaoo.mobile;

import android.support.multidex.MultiDexApplication;

import com.dx.as.JWApplication;
import com.dx.as.utils.sys.sys.SystemUtil;
/**
 * Created by jwaoo on 2017/6/1.
 */

public class Application extends JWApplication  {
    @Override
    public void onCreate() {
        super.onCreate();
        ApplicationHelper.init(this);
    }

    @Override
    public void onTerminate() {
        super.onTerminate();
    }

    @Override
    public void onLowMemory() {
        super.onLowMemory();
    }

    public boolean inMainProcess() {
        String packageName = getPackageName();
        String processName = SystemUtil.getProcessName(this);
        return packageName.equals(processName);
    }
}


